include("shared.lua")

local spr = Material("effects/fire_cloud2")

ENT.cR = 255
ENT.cG = 255
ENT.cB = 255

function ENT:Initialize()
	self.cR = 255
	self.cG = 100 + math.random() * 60
	self.cB = 60 + math.random() * 40
end

function ENT:Draw()
	--local sTime = self.Entity:GetNetworkedFloat("spawnedtime")
	--render.SetMaterial(spr)
	--render.DrawSprite(self.Entity:GetPos(),self.fRad*2,self.fRad*2,Color(255,255,255,255))
	--render.DrawSprite(self.Entity:GetPos(),self.fRad * 4,self.fRad * 4,Color(255,0,0,255 - 255 * ((CurTime() - sTime)/self.Life)) --[[Color(self.cR,self.cG,self.cB,255 - 255 * ((CurTime() - sTime)/self.Life))]])
end
